</head>
<body>
	<header>
		<a href="${urlCreerPartie}" id="header"></a>
	</header>

<c:url var="urlDeconnexion" value="deconnexion.html" />
<c:url var="urlRejoindre" value="rejoindre.html" />
<c:url var="urlIndex" value="index.html" />
<c:url var="urlAccueil" value="menu.html" />
<%-- <c:url var="urlRejoindre" value="plateau.html" /> --%>


<c:if test="${joueur.login == null}">
	<jsp:forward page="${urlIndex}"></jsp:forward>
</c:if>

<div class="container">

	<div class="header">
		<ul class="nav nav-pills pull-right">
			<li class="active"><a href="${urlAccueil}">Accueil</a></li>
			<li class="active"><a href="${urlDeconnexion}">Deconnexion</a></li>
		</ul>
	</div>

	<div class="jumbotron">
		<h1>Marionito !</h1>
	</div>

	<form id="connexion" method="post" action="${urlRejoindre}">
		<table class="table">
			<TR>
				<TH>Nom</TH>
<!-- 				<TH>Nombre joueurs</TH> -->
				<TH>Selection</TH>
			</TR>

			<c:forEach items="${lesParties}" var="item">
				<TR>
					<TD><c:out value="${item.nom}" /></TD>
<%-- 					<TD><c:out value="${item.joueursPartie.size()}"/>/3</TD> --%>
					<TD>
						<div class="radio">
							<input type="radio" name="nomPartie"
								value="${item.nom}">
						</div>
					</TD>
				</TR>


			</c:forEach>

		</table>

		<button type="submit" class="btn btn-default">Rejoindre</button>
	</form>

</div>
